﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BLL.BusinessRules;

namespace BLL
{
    public class DMQUYENHOADON: BusinessObject
    {
        public string MaQuyenHoaDon { get; set; }
        public string TenQuyenHoaDon { get; set; }
        public int? SoHoaDonTu { get; set; }
        public int? SoHoaDonDen { get; set; }
        public int? STT { get; set; }
        public bool? IsUse { get; set; }
        public int? CreateBy { get; set; }
        public int? ModifiedBy { get; set; }
        public DateTime? ModifiedOn { get; set; }


        public DMQUYENHOADON()
        {
            AddRule(new ValidateRequired("MaQuyenHoaDon"));
            AddRule(new ValidateLength("MaQuyenHoaDon",1,50));
            AddRule(new ValidateRequired("TenQuyenHoaDon"));
            AddRule(new ValidateLength("TenQuyenHoaDon", 1, 50));
            AddRule(new ValidateRequired("SoHoaDonTu"));
            AddRule(new ValidateRequired("SoHoaDonDen"));
        }

        public DMQUYENHOADON(string maQuyenHoaDon, string tenQuyenHoaDon, int? soHoaDonTu, int? soHoaDonDen, int? stt, bool? isUse, int? createBy, int? modifiedBy, DateTime? modifiedOn)
            :this()
        {
            MaQuyenHoaDon = maQuyenHoaDon;
            TenQuyenHoaDon = tenQuyenHoaDon;
            SoHoaDonTu = soHoaDonTu;
            SoHoaDonDen = soHoaDonDen;
            STT = stt;
            IsUse = isUse;
            CreateBy = createBy;
            ModifiedBy = modifiedBy;
            ModifiedOn = modifiedOn;
        }

    }
}
